//
//  ChatMessages.m
//  搭建框架(代码已封装)
//
//  Created by My Mac on 2017/2/3.
//  Copyright © 2017年 My Mac. All rights reserved.
//

#import "ChatMessages.h"

@implementation ChatMessages

/*
 字典转模型的对象方法和类方法
 */
-(instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+(instancetype)messageWithDict:(NSDictionary *)dict{
    return [[self alloc]initWithDict:dict];
}

@end
